package com.anasoft.os.s4j;

import com.anasoft.os.s4j.annotation.SeleniumSession;
import com.thoughtworks.selenium.Selenium;

/**
 * Factory for creating {@link Selenium} session instances.
 * 
 * @see SeleniumRunnerLogic
 * 
 * @author vojtech.szocs
 */
public interface SeleniumInstanceFactory {

    /**
     * Creates new {@link Selenium} instance for the given session
     * configuration.
     * 
     * @param sessionConfig {@link Selenium} session configuration.
     * @return New {@link Selenium} session instance.
     */
    Selenium createSelenium(SeleniumSession sessionConfig);

}
